package net.xmmpp.uc.im.group.broker.bean;

public class MessageXmpp {

    private String from;
    private String to;

    /**
     * 0: chat
     * 1: groupchat
     */
    private int type = 0;

    private long version;
    private long ts;

    private String xmpp;

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getVersion() {
        return version;
    }

    public void setVersion(long version) {
        this.version = version;
    }

    public long getTs() {
        return ts;
    }

    public void setTs(long ts) {
        this.ts = ts;
    }

    public String getXmpp() {
        return xmpp;
    }

    public void setXmpp(String xmpp) {
        this.xmpp = xmpp;
    }

    @Override
    public String toString() {
        return "MessageXmpp{" +
                "from='" + from + '\'' +
                ", to='" + to + '\'' +
                ", type=" + type +
                ", version=" + version +
                ", ts=" + ts +
                ", xmpp='" + xmpp + '\'' +
                '}';
    }
}
